added xor and NOR gates