Programs written while reading MacKay's "Information Theory, Inference, and Learning Algorithms" (2003)