after reviewing the memory functions in <momery>, fix a bug in erase function of Vec class that would cause memory leaks when erasing a non-trailing element
exercise 13-0: programs in chapter 13