Program written in c++ to calculate method of least squares