logic gates with 3 inputs site:electronics.stackexchange.com - Search