update permutations and combinations