Apriori algorithm Implementation