min cost flow with fordBellman (Opencup GP spb)