Function to find roots based on the method proposed on the paper:
I. F. D. Oliveira and R. H. C. Takahashi. 2019. An enhancement of the bisection method average performance preserving minmax optimality. ACM Trans. Math. Softw. 0, 0, Article 0 ( 2019), 25 pages.