Implement XOR basic gate