xor gate rules - Search