algo4: tree: Find common ancestor