Add functions for removing a specific element from the array as well as the head and tail of the array
Test the dynamic array