added functions to compute gradient and iterate. Still have to finish precision shifts.
Merge branch 'master' of https://github.com/dw19375/contikiV