Text this: Generalization of the bisection method and its applications in nonlinear equations