2D R-Tree implementation in Scala