Implements Multiclass hinge loss

Implements multiclass hinge loss. Fixes #3451 

    labels = np.asarray(labels)
    if len(labels) > 2