permutation function

Permutation for HDANOVA