Optimized.
Includes profiler and sample runs.
Includes borrowed memoize library, not used.