finished linked list and double linked list