cleaned up test code in Permute.c