move Hilbert curve computation in compile unit
move distance computation from r-tree to element type class