title: Stretching out an array
body: <p>I've got a vector of samples that form a curve.  Let's imagine there are 1000 points in it.  If I want to stretch it to fill 1500 points, what is the simplest algorithm that gives decent results?  I'm looking for something that is just a few lines of C/C++.</p>
  
  <p>I'll always want to increase the size of the vector, and the new vector can be anywhere from 1.1x to 50x the size of the current vector.  </p>
  
  <p>Thanks!</p>