Ancestral sequence reconstruction