Create partialOptimality

For merging the extended CVPR code into OpenGM