Gibbs sampling

The answer to the Gibbs sampler exercise can be found at

gibbs_sampler_ans.c
cl2pred_ans.c