Comparison of ancestral sequences