Java library implementing binary max-sum using Tractable Higher Order Potentials