Improve benchmarks
Add memoizer. Simplify Graph with it.