add optimalCurve.m