Update NOR.cpp