Segmenting Genetic Sequences Based on Common Ancestry