added graph cut and unit-test

consistent comments needed