Linear Regression with gradient descent algorithms using C++ in VS2010