Commiting min path sum