added graph cut and unit-test

Error: ETerminalType is not a class or namespace