modify PopulatingNextRightPointersinEachNode.cc