changed quick sort and linear search to work with Word objects instead
of strings