Lifted Symmetry Detection and Breaking for MAP Inference