added graph cut and unit-test

need to add @param