finished max path sum