An implementation of the Apriori algorithm