Improved autocorrelation routines to work on multidimensional arrays.
Fixed a bug with multidimensional ACF calculations.