Train a one-vs-all multi-class classifier

ONEVSALL trains multiple logistic regression classifiers and returns all the classifiers in a matrix all_theta, where the i-th row of all_theta  corresponds to the classifier for label i