fix sub-trie prefix matching


when you have `/` and `/a/b/c`, `/a/b` should be handled by `/`.
Merge pull request #22 from minrk/sub-trie-match

fix sub-trie prefix matching