finish the implementation of predictOneVsAll.