Merge pull request #68 from opengm/master

update from master
chnage to functor implementation
mp functor operations
Merge pull request #272 from joergkappes/master

use functors for message passing operations