improved performance of mergesorter a lot