improved Populating Next Right Pointer