Segmentation implemented

Segmentatin based on separated sources files (i) for general
geom_points,  i) for reference geom_points).