1-D convex regression v1.0