CommonAlgorithms Progress

Lots of bugfixes, to CA, and completion of mincostflow.