An Analysis of a Simple Genetic Algorithm