Haskell implementatio of R-Trees