rstemplatematching2: sample p-values such that the extreme regions aren't sampled as thoroughly as the center