Apriori Algorithm Ruby implementation