improved performance

Copy is generally faster than mergesort.