What are three main ways that variations in genotype arise in a population?