Added CaRBM code.