Implementation for 'corr' function
Proper (not cached) implementation for 'corr', comment out test cases