constructor(size) {
        this.size = size;
        this.queue = new Array(size);
        this.frontIndex = 0;
        this.time = 0;
    }
Event Queue is simply a priority Queue, basic implementation O(n^2).
@category eventQueue