Implements Multiclass hinge loss

Implements multiclass hinge loss. Fixes #3451 
The new indentation is correct. (The indentation of the whole file is a bit awkward, IMO)