A Scalable Bayesian Inference Accelerator for Unsupervised Learning