improved radix-tree and added some comments