Added a function to compute the correlation between two signals.