One vs. All Classification with built in optimation function.