created code to generate permutations