CalculateDFA function

Detrended Fluctuation Analysis