fitpsy function

Fits the curve fitpsy fits de curve