programming exersise about linear regressino with gradient descent implemented by octave and c++