not and or gates using nand gates