Fixed bug in Java version, specifically the sorting procedure by fitness. Removed the Map and implemented a simple comparator. Thanks to Daniel Molina Cabrera.