sliding_similarity function

Sliding similarity via Pearson's correlation