hotperm function

Conduct NL and N permutation tests