In addition to the words in a section of text, a concordance usually stores the numbers of selected pages on which there is a significant use of the word.
Modify the program of Problem 20 so that the numbers of all lines in which a word appears are stored along with the word itself, but don't list the same line number more than once for a word.
The program should display each word together with its associated line numbers in ascending order.