Testing sign(), which calculates the determinant of the permutation matrix