An Empirical Comparison of Inference Algorithms for Graphical Models with Higher Order Factors Using OpenGM