Foundation of Genetic Algorithms