docs: public void remove(QueueElement qe) {
  
  		if (head == qe) {
  			removeHead();
  		} else if (tail == qe) {
  			removeTail();
  		} else {
  			qe.previous.next = qe.next;
  			qe.next.previous = qe.previous;
  			qe.previous = null;
  			qe.next = null;
  			qe.queue = null;
  			numElements--;
  		}
  
  	}