public void set(int index, E o)
    {
        if (index >= data.length)
        {
            grow(index * 2);
            size = index + 1;
        }
        else if (index >= size)
        {
            size = index + 1;
        }
        
        data[index] = o;
    }