Update polyfit.cpp

Modify the default datatype(CV_32F) to CV_64F.
(http://code.opencv.org/issues/2887)