First implementation of APriori