Analyzes the performance of insertionsort and mergesort.