XOR implementation added