fit_curvature_min function

Minimum curvature analysis (elbow detection)