Gradient descent and normal equation