added solutions for populating next right neighbor