calcK1Itemset optimized on the advice of @clemgaut