Tennis Necklaces

[profiler]
Memory usage: real: 12582912, emalloc: 18357112
Code ProfilerTimeCntEmallocRealMem