rbtree: add dict.c from kazlib