AC Minimum Path Sum