completed ex3 onevsall prediction