add useful methods in Permutations.