Use a fixed-length arrays, avoid heap allocation. Also reduce the default number of elements so that it runs fast enough in DBG mode.