Added the beginning of a more flexible way to do first order optimization on SdA models.  Now able to choose between classical momentum with SGD and NAG.  Later will try to add HF for GB models