Better code organization in two loops and aux functions

* Apriori returns the biggest and frequent sets of elements.