Least square procedures to improve the results of the threeparameter sine-fitting algorithm