Apriori Algorithm implementation in php