Cleaned up the linked list implementation
Implemented a doubly linked list