Implements Multiclass hinge loss

Implements multiclass hinge loss. Fixes #3451 
Sorry about my carelessness :/ . I have updated my first comment.