working sgd with Hinge loss