How Selection Changes the Genetic Composition of Population