populating next right pointer in each node II