Indexing and memory layout routines for cache oblivious data structures