code: protected void resizeBuckets (int newsize)
      {
          Record<V>[] oldbuckets = _buckets;
          _buckets = createBuckets(newsize);
  
          // we shuffle the records around without allocating new ones
          int index = oldbuckets.length;
          while (index-- > 0) {
              Record<V> oldrec = oldbuckets[index];
              while (oldrec != null) {
                  Record<V> newrec = oldrec;
                  oldrec = oldrec.next;
  
                  // always put the newrec at the start of a chain
                  int newdex = keyToIndex(newrec.key);
                  newrec.next = _buckets[newdex];
                  _buckets[newdex] = newrec;
              }
          }
      }
docs: Resize the hashtable.
  
  @param newsize MUST be a power of 2.