Calculation of the Hurst Exponent