added exact_mc_perm_test
updated for use different conditions