find a bug in function minimize_graphcut