Started contrastive divergence impl