Build up a vector straight away instead of lists