add oop version of cargers mincut algorithm