the gpm will stop when #matchings greater than 20000