Replace interpretation of permutations with function of factored code

GetPermuteMatrix() code was lifted from permutest.cca, and now
we use that function in place of the old code