Allocate the dictionaries in examples/zran.c. This reduces the memory needed for dictionaries, and avoids the need to reallocate the index at the end to return unused memory.