update format of Minimum Path Sum