Prototype exact permutation test (buggy)