Add createRtree and loadRtree function