insertAll method
Inserts multiple words with their associated details.
This is done by calling insert on each key-value pair.
Implementation
void insertAll(List<MapEntry<String, T>> data) {
for (var entry in data) {
insert(entry.key, entry.value);
}
}