radix-tree: improve contains operation