Exercise 3: Prediction for One-vs-all classifier