Maxflow algorithm for Delphi and FreePascal