This function runs a number of two sample tests using Rcpp and parallel computing and then finds the correct p value for the combined tests.
Useful links