Lazily generate permutations

You’ll generate the permutations faster with a map