added calculateMDD (Bovet and Benhamou)