populating next right pointer 2