Code used in information theory experiment.