Or and Xor  implementation