DoublyLinkedList.prototype.pop = function () {
    if (this.length === 0) return null;

    const node = this.back.prev;
    _remove(node);