Start segmentation algorithm.