Fixed Bugs in NOR Gate class