A free and open source C++ library for Discrete Approximate Inference in graphical models