https://medium.com/@monocosmo77/working-with-stochastic-approximation-part1-machine-learning-d057bc21fd46