Similar Items: Analytically Tractable Hidden-States Inference in Bayesian Neural Networks