outer function

Outer product of vectors of permutations