pop() {
    if (this.isEmpty()) {
      throw new Error('Empty queue');
    }
    const e = this._elements.head;
    this._elements.delNode(e);
    return e.value;
  }
Pops the element in the beginning of the queue