finish K min cut