give a new to manage the dynamic memory by using a vector<byte> as the container