Use a memory pool for KDTree node allocation (doesn't speedup construction much, but it does for cleanup).