Started to port the statistics moments calculations from the commented
out php to Java