Update polyfit.cpp