improvement max drawdown calculation, drawing and alternative algorithm (wikipedia)