implemented one_vs_all classifier