[boost] reset_and_collect root determination and sp_collect similarity