Genetic algorithm for fitting and solving equations (Qt)