files for data-fitting on octave, minor modifications might be required to work on matlab