Modified vector class and test script to allow dynamic (de)allocation of memory in C backend.