Add btrie:find_prefix/2

Move trie:find_prefix/2 to trie.hrl and make it generic.
Add btrie:find_prefix_longest/2

Move trie:find_prefix_longest/2 to trie.hrl and make it generic.