Create D latch using NAND gate