Implementation fo the Apriori Algorithm