Fix duplicate itemsets in array Ck and optimize memory usage using 'unset' method