R/utils.R
permute.Rd
Creates all possible permutations
permute(n)
Integer: Length of elements to permute
Matrix where each row is a different permutation
n higher than 10 will take a while, or may run out of memory in systems with limited RAM