Segmentation of data