A library for Probabilistic Graphical Models