Start implementing a doubly-linked list.

-Rename certain methods in dynamic array to avoid ambiguities.
- Also remove an unused local variable in the insert method of dynamic array.