Added graph_cut (charlie's work)