better visuals on pseudo code for iterative segmenter