Curve fitting for a specific set of data