A trie implementation with branch widths