I don't like this much as you do many copies from list to array and then a realloc by concatenating epochs....