Noise correlations and template matching on neural recordings