add next permutation