CalculateMaxLyapunov function

Maximum lyapunov exponent