Populate the nextRight pointers in each node