A variable length
DoubleArray implementation that automatically
handles expanding and contracting its internal storage array as elements
are added and removed.
The internal storage array starts with capacity determined by the
initialCapacity property, which can be set by the constructor.
The default initial capacity is 16.