using one-vs-one classification