source code for exercises from Mackay's Information Theory, Inference and Learning Algorithms