Segment dectection

add first version of connected component segmentation