https://cognitivehub.in/normalized-cross-correlation-in-python/