Probabilistic Graphical Models in C++