Small example and template library for generic Markov Random Field minimization (Only max-flow min-cut for now).