Fix NaNs in bisect.left and quicksort_by.