adding RTreeRectMinDistance to rectangle.c