added graph cut and unit-test