Added xor to logicals.r