Add dedicated autocorrelation routine.
Use autocorrelation routine from .utils, fix types.