Added Apache commons math library. Implemented max, min and percentile time series logging for the Sonar metric writer.