2d Cross Correlation Formula