implementing doubly linked list. addFirst and addLast completed