Ford-Fulkerson algorithm for calculating maximum possible flow in graph. Implementation in C++