Segmentation skeleton

Added primitive segmentation