converted insertion sort to work with Word[] array *not tested, probably
does not work right*