Change in Rtree for rect retrieval and mindist
shortest path in function param