added the nice mpfit routine provided externally