Started implementing minimal cost flow algorythm