Implements Multiclass hinge loss

Implements multiclass hinge loss. Fixes #3451 
maybe a comment here to explain the `reshape`