add rtree implementation and some ut cases