Commit a Solution for minimum path sum problem