Hello! I wonder if anybody can help me.

I am working on a personal project and I want to find the best match for a patch in a larger series.

I thought cross correlation would be a simple way to go about this. But the problem is better shown below.

Imagine my time series is:
1
2
3
4
5
6
7
8

and my patch:
3
4
5
6

Now the cross correlation between the data below is:
1 3
2 4
3 5
4 6
cross correlation: 1

the same as the perfect match:
3 3
4 4
5 5
6 6
cross correlation: 1

Now, I obviously need to study more statistics, but I would certainly appreciate if anybody could point me in the right direction.

THANK YOU!