logic gates background - Search