Slowly building an independant MaxFlow class