Implementing One vs All classification