Update Path sum