Fix max recursion problem.
Fix test.
pep8
remove debug statement.
Add comment
Fix some pickling issues
Fix more pickling of FunctionGraph
Merge pull request #3 from nouiz/yaoli-optimization_cache2

Yaoli optimization cache2