nthperm

extended combinatorics to include k = nthperm(p) to be the inverse of p = nthperm([1::N], k).  Code corrected by Kevin Squire on julia-users.