added rtree structures and cuda sort function