this.buffer = Array.from(Array(capacity), () => new LinkedList());
this.buffer = [...Array(capacity)].map(() => new LinkedList);