Implement correct method for calculating curvature on a Path