Code for nonparametric continuous latent variable priors / automatic dimensionality determination