Simplified the way in which benchmarks are executed.

Modified the algorithm (now it produces exactly the same output than the java --exact version)

Removed the C++ version