Implemented loopy belief propagation
added alarm model