compare running time of different sorting algorithms