adding additional forwardJacDot template to RBM cpp