Shape Model for Segmentation of Medical Data