Permutation not finished yet
Finished the permutation function