GradDesc implemented