>>107005674
>>107005725
How about a linked list that as it dynamically creates new nodes, stores a table of indices for its elements so you can directly index to the nodes you want?