Permutations Genearator.