--implement permutation test