code: @SuppressWarnings("unchecked")
    private List<SpatialEntry>[] generateDistribution(SplitSorting sorting) {
      List<SpatialEntry>[] distibution;
      distibution = new List[2];
      distibution[0] = new ArrayList<>();
      distibution[1] = new ArrayList<>();
      List<SpatialEntry> sorted_entries = sorting.getSortedEntries();
      for(int i = 0; i < sorting.getSplitPoint(); i++) {
        distibution[0].add(sorted_entries.get(i));
      }
      for(int i = sorting.getSplitPoint(); i < node.getNumEntries(); i++) {
        distibution[1].add(sorted_entries.get(i));
      }
      return distibution;
    }
docs: Generate the split distribution for a given sorting of entry positions
  using the given split position <code>limit</code>. All
  entries referenced by <code>entrySorting</code> from <code>0</code> to
  <code>limit-1</code> are put into the first list (<code>ret[0]</code>), the
  other entries are put into the second list (<code>ret[1]</code>).
  
  @param sorting this splitDistribution
  @return the split distribution for the given sorting and split point