Ugly rough sketch of simple ancestral search.