fix the correlation logic

to match 2 correlations have to

- have at least one value in common at the same index
- to not have at least one index with 2 different values