Use std::vector, and no more magic numbers.