implemented gaussian bernoulli rbm, compiles but chrashes with assertion error