testing different segmentation algorithms