explain basic gates in details - Search