Added fitnesses caching, which substantially improved performance and
avoided problems of evaluating duplicates.