code: public void ensureSize(int maxPartitionOrder) {
          if (capacityByOrder >= maxPartitionOrder) return;
          parameters = new int[(1 << maxPartitionOrder)];
          rawBits = new int[(1 << maxPartitionOrder)]; 
          capacityByOrder = maxPartitionOrder;
      }
docs: Ensure enough menory has been allocated.
  @param maxPartitionOrder The maximum partition order