Update word_sorter.cpp