Add sinus as fit function

Fit sinus to the data.
The period of the sinus has to be set by the user.