fn split_index(idx: usize) -> (usize, usize)
Returns the chunk index and intra-chunk offset for an element index.