Merge pull request #123 from scott-vsi/master

Thanks Scott for a great contribution! Your contribution is highly appreciated!
added support for the sum-product variant of the belief propagation algorithm.