added are_perms_equal_parity()