Update ApplyPermutation.java