fixbug in arrayPermutation.cc