M_rand_perm function

Calculate M statistics after random permutations