refactor libdai wrappers for the new visitors
Merge pull request #217 from joergkappes/RC-2.3

refactor libdai wrappers for the new visitors