Populating next right pointers