An implementation of Apriori algorithm