fix normalization bug
combine rbm and rbmlinear