populatingNextRightPointersInEachNode