Updated secant method & newton's method (3 versions) of root approximation.

Fixed small errors in function structure and output.