Common sorting algorithm complexity