Permutation Testing for Repeated Measurements