[Olena-patches] milena r1227: Update labeling_algo