Final Apriori implementation