work in progress: have the memory pools binary tree auto-balance