Implementation of the apriori algorith for generating frequent itemsets