@SuppressWarnings("unchecked")
	public void add(int index, T theElement)
	{
		if(index < 0 || index > size)
			throw new IndexOutOfBoundsException("index = " + index + "  size = " + size);
		
		if(size == element.length)
		{
			T[] old = element;
			element = ( T[] ) new Object[2 * size];
			System.arraycopy(old, 0, element, 0, size);
		}
		
		for(int i = size - 1; i >= index; i--)
			element[i + 1] = element[i];
		
		element[index] = theElement;
		
		size++;
	}