[Olena-patches] r3318: Implement fastest versions of labeling