added graph cut and unit-test

Ok. I forgot this is mentioned in Kolmogorov's PAMI04.