NAND and NOR equivalent gates