fixed off-by-one error in which only half the words in expandkey were used