Text this: Inference in Higher Order Undirected Graphical Models and Binary Polynomial Optimization.