Finding the M Most Probable Configurations using Loopy Belief Propagation