Implementing OR gate using NAND gate