Time complexities of sorting algorithms