first implementation : Trie for non overlapping words