R-Tree C implementation