algo4: tree: Path sum