add permutation sequence
add first missing positive