Segmenting the teeth