Update rtree.c

partial update