[WIP] Fix Algorithm\MinimumCostFlow

* [ ] 100% code coverage
* [ ] Documentation / changelog

(Re-opened #69 against the right branch.)