quad 2 input and logic gate