Use multimap for ordering dimensions in chunking