added graph cut and unit-test

copy or move this comment to header may be better