matlab function calculates hurst exponent