Fixed infinite loop in frequent_itemset_gen