Continue implementing min-cost-flow algorythm