Moved segmentation code to repo