Add NAND3 gate