Simple Logic Gate and Truth Table - Search