Implementation of dynamic array akin to a Python list.