An Improved Genetic Algorithm