Fixes on calculating adjusted fitness and enforcing double return type for root node.