Reduce memory footprint of read dictionary

* Allocate vectors as a contiguous block of memory
* Prevent leaking scanned lines by copying the term names