Implemented boolean XOR