Update calculCorrelation.m