Reordering some methods
basic code to generate string permutations