extractXElementFromQueue method
Extract the X first elements
Implementation
List<Hit> extractXElementFromQueue(int xElem) {
List<Hit> result = [];
for (int i = 0; i < xElem && fsQueue.isNotEmpty; i++) {
result.add(fsQueue.removeFirst());
}
return result;
}