ported benchmarks and examples back to v1

Where is `allLeaves` used.  Can you remove it?