added b_trie_lookup, b_trie_size and b_trie_foreach