Started implementing loopy belief propagation.