Tweaking merge sort to perform faster