A dynamic array class that allows you to add and/or remove elements and resize the array dynamically.
T - The type that will be stored in the dynamic array.