RBM in Scala, just for the fun of it