Fast implementations of several probabilistic models.