added graph cut and unit-test

incident issues here and below.