Some methods for computing permutations