logic gate from truth table - Search