Implementation of Max Flow and Min cut algorithms in C++