Permutations generator example