changed behaviour of Trie.find_prefix to return matched part of key as well as value and remainder