Normalized correlation for pattern recognition | Synapse