use special case inlined bisection