Corrected a minor calculation error in Statistics

Corrected a minor calculation error in Statistics.java
Added tests for Statistics.java
  jsc.jar is a closed source library used to verify correlation methods.