sgn function

Sign of a permutation