use adaptive sort in nreplace benchmark