Refactor to use newer commons math library

Change from SimpleRegression.getR() to more explicit PearsonsCorrelation
class. Results are the same, but changing for clarity.
Add ability to calculate spearmans correlation
Add configurable correlation modes (Pearsons or Spearmans)