Update Apriori algorithm for a speed up.