removed static variables from EstimateCorrelationsAtSamplePoints