Completed implementation of AutoCorrelationCore

It leads to results as close as (currently) possible to the original
fortran routines. Since the algorithm is used in at least 5 - 6 places
in the program, it will be altered slightly (adding virtual methods to
override etc.) and some parts of the interface may change.