added graph cut and unit-test

summarize comments in header as well