Workflow segmentation algorithm which will be converted to Slicer module (Jan 2013).