implemented divided differences in efficient iterative method, and intuitive recursive method