public void AllocateTreeIndex(Allocator allocator)
 {
     Debug.Assert(Data.IsCreated);
     Indices = new TreeIndex
     {
         DataIndexToChildren = new NativeArray <TreeIndex.Children>(Data.Length + 1, allocator),
         ChildToDataIndex    = new NativeArray <int>(Data.Length, allocator)
     };
 }
 public SortTree(T sorter)
 {
     Sorter = sorter;
     Tree   = default;
 }