curve-fitting added to math-toolbox