Fix bug in scaled hinge loss and add smoothed hinge loss with adjustable margin/costs