cleaned up recently restored SGDOptimizer code