add populating next right pointers