Create permutationtests.r