[Olena-patches] milena r2926: Put algebraic_union_find into a routine