Correlation Algorithms for Event and Time Series