A theory of multiclass boosting