@Override
  public void setData(int segmentIndex, int data) {
    if (segmentIndex >= myData.length) {
      myData = ArrayUtil.realloc(myData, calcCapacity(myData.length, segmentIndex));
    }
    myData[segmentIndex] = (short)data;
  }
@Override
  public void setData(int segmentIndex, int data)