Implementation of root finding algorithms using bisection, Newton's method, and the Secant method