MX Octree implementation in Haskell