krager algorithm min cut final