how can i write my own container which has properties of both vector and list.
eg. i can access elements directly using [] operator like vector and behave like list in terms of memory(means we dont have to shift elements if we want to insert in between like list)