conComp function

Connectivity components