minimal cost maximal flow