Lists all permutations of 1,2,...,m unique up to the first two elements
make_permutations(m)
m
number of elements to permute
A list of vectors of permutations of 1,2,...,m.