Correlation algorithm version 3. Full exploit of parallelization and lag window caching. Passes correctness tests.