distance: Compute the distance between permutations
Description
Compute the distance between two given permutations. If only one permutation is
given the other one is assumed to be the identity (1,2,3,....,n)
The distance can be kendall, cayley, hamming and ulam