add memory free function of vector topy