Added watershed algorithm and motion in segmentation (#4)