gradient descent method completed