a toy rbtree based memory allocator