changes to use rtree in ugrid and cgrid gfi, untested for cgrid