first draft of radix-tree implementation