Added WordSet implementation