used the new functor in dynamic programing
Merge pull request #28 from opengm/master

from master to my fork
added cgc
Merge pull request #278 from DerThorsten/master

cgc
merged
Merge branch 'cgc-cvpr2014' into mc_moves