Snapshot of untested graph cut implementation

Doesn't even compile...