Apriori Hierarchical Algorithm