Hilbert R-Tree in haskell