C++ RBM class, including Bernoulli-Bernoulli and Gaussian-Bernoulli implementations, plus utilities