Update to the gradient descent