Completed corr(): passed all unit tests