add bounding method in factor graph model for submodularity