public T set(int index, T element) {if (index < 0 || size <= index)throw new IndexOutOfBoundsException(String.valueOf(index));T[] blockRef = directory[toDirectoryIndex(index)];int blockIdx = toBlockIndex(index);T old = blockRef[blockIdx];blockRef[blockIdx] = element;return old;}

public override T Set(int index, T element){if (index < 0 || size <= index){throw new IndexOutOfRangeException(index.ToString());}T[] blockRef = directory[ToDirectoryIndex(index)];int blockIdx = ToBlockIndex(index);T old = blockRef[blockIdx];blockRef[blockIdx] = element;return old;}
