Generates permutation of n elements and length n in a direct fashion. It works index-based, not by iterating over previous permutations.
n