Shortest ancestral path