circular list in examples/mem_size