Parallel segmentation algorithms