An Application of Linear Programming to Curve Fitting