module for running a permutation test on an rdm