Started rewriting Pi calculation from Scala to Java.