https://123dok.net/document/z31dox9y-stochastic-modeling-financial-markets-dynamical-programming.html