https://cognitivehub.in/pattern-recognition-in-time-series/