Shortest Ancestral Path