Decomposition schemes for multiclass classification and domain adaption