PHP Genetic Algorithm