parity of a permutation