Fixed minor bug in MinCut algorithm