added graph cut and unit-test

Could we use CList here? So that we could include this class to doxygen.