permutation_test function

Run permutation test on PCA analysis.