@Override
    public void updateEntry(int entryIndex,
                            int key,
                            int value) {
      segmentBuffer.putInt(offsetOfSlot(entryIndex * 2), key);
      segmentBuffer.putInt(offsetOfSlot(entryIndex * 2 + 1), value);
    }
@Override
    public void updateEntry(int entryIndex,
                            int key,
                            int value)