Implemented oneVsAll and predictOneVsAll