build double linked list