Interleaved k2-tree: Indexing and navigating ternary relations