added code for permutation testing

Leave-one-subject-out permutation testing.