First version of rb-tree for memory regions