Should've used vectors, they said. Memory allocation is hard, they said. They were right.