added persistent contrastive divergence (work-in-progress)