https://medium.com/@monocosmo77/working-with-cubic-regularization-part2-machine-learning-optimization-62424ff9ccb7