add Apriori using broadcast and clean up code