DOC: make curve_fit nomenclature same as leastsq

The curve_fit help used N for the number of data points and M for the number of parameters, but lasts which has these reversed. Fixes issue #3172