code: function BruteForceList(capacity) {
    this.intervals = pool.mallocDouble(2 * capacity)
    this.index = pool.mallocInt32(capacity)
    this.count = 0
  }
docs: It is silly, but this is faster than doing the right thing for up to a few thousand segments, which hardly occurs in practice.