Implements Multiclass hinge loss

Implements multiclass hinge loss. Fixes #3451 
git blame points me to @arjoly . Maybe he can confirm.