Stochastic Gradient Descent (SGD) for golang