populatingNextRightPointerInEachNode