update solution to Minimum Path Sum