updated polyfit_cv()