Python Sorted Function Time Complexity Of Binary