LASegmenter without boost lib