Matt mohammed

Finished implementation of flow algorithms.