https://leehao.me/posts/maximum-drawdown-linear-algorithm-implementation/