Enhancements for apriori algorithm