correction for mergesort without copy