added AverageAndError and CorrelationCoefficient to lbrary