what is the gain or loss of genes as organisms move from one population to another