Computing cost J(θ) and implementing gradient descent for multivariate linear regression.