max product inference for factor graph model
Merge pull request #1379 from hushell/fg_dev

max product inference for factor graph model