private  void setHead(DoublyLinkedListNode node){
        node.prev = null;
        node.next = head;
        if(head != null) head.prev = node;
        head = node;
        end = end == null ? node : end;
    }