a routine to correlate 2 random vectors + use on t-test