perm function

Vector Permutations