Queue.prototype.peek = function () {
    return !this.isEmpty() ? this._elements[0] : null;
};