Python Sorted Function Time Complexity Of Quick