write miminum cut in c++ by edomonds