Grid min sum path