added gradient estimation function for future debugging
Merge branch 'master' of https://github.com/Elijas/iris