rbtree based memory allocator