fixed a bug due to attempting to calculate the correlation between 2D vectors (instead of >2D vectors)