made maxflow nondestructive for cap, added test
Make maxflow incremental

When running with same ini and end, will reuse existing flow.
Otherwise, will clear flow before computing.