add next permutation and permutation sequence