Binary XOR implementation