Populating next right pointers in each node AC version