add MinCostFlow