Solver switching support & implementation of Nesterov's accelerated grad...

...ient and AdaGrad