Implemented an algorithm for Lyapunov exponent calculation