Create minpathsum