Implements Multiclass hinge loss

Implements multiclass hinge loss. Fixes #3451 
I am not sure this renders correctly.