implement bestFitLine with mutable PearsonCorrelationCoefficient