printWords

Added a function that prints a list of words in lexicographical
ordering.