A merge sort algorithm that outputs the number of comparisons for better understanding.