WIP Belief propagation

Belief propagation implementation in pure python, with a special case for circle-free graphs.
Working but slow ;)