Sorting In Python With Sort Function Matlab Code For Bisection