Implementation of the multifusion method in opengm.