moved from realloc to linked lists for sentence/word lists, uses more memory, but is about twice as fast