Use std::vector to store points

Use std::vector to store data points and automatically updates
the number of points as the vector grows.