Bieler's segmentation Matlab code