Provides access to the current capacity (.length) of the private array to
allow for rigorous unit testing - note that this method is not available
in the Java Standard Library ArrayList class.
Using the provided element's equals method, this method returns the
index of the first element in the list that is equal to the provided
element, if any.