Change how memory is allocated.
Change how memory is allocated.

We were always allocating a power of two of the initial data buffer size.  This is inefficient for large arrays, so if the size is increased significantly in one call, just allocate the amount that was asked for.

OpenGeoscience/vgl,OpenGeoscience/vgl,OpenGeoscience/vgl,OpenGeoscience/vgl