fixed quicksort method to swap the Word objects instead of writing over
words in the word object.  This keeps the word count correct