trie to implement WMS in branch