[rtree] Generalized tree and switched nodes to RTree