Benchmark: Java version

This is a Java 7 version of the benchmark. It's multithreaded and optimized. For performance reasons the objects are stored in an array (17s instead of 90s on my machine).