added function to compute MMD2u null-distribution given precomputed permutations