Simple Genetic Algoritm written in PHP