rtree implementation in C