added graph cut and unit-test

Yes, just unref it when finished.