minimal cut problem solved