NumPy correlate method