logic gate with truth table - Search