Benchmark with Thread and after testing Tree3
large refactor; several improvements