CurveSegmenter is now an instance and takes a mid point calculator