Changed VisibleUnitVector data type from [Bool] to Vector Double from hmatrix's Data.Packed.Vector.
Added RBMState data type to hold all relevant state during learning.