Create permutation sequence

this is a good method