GradientDescent tested and fixed