Update removeSomeNodes.cpp