implemented divided differences

+ divided differences function
* rearranged the computational stuff into functions.r
* need to implement timing functions for efficiency study