changed add functions to push, and then added insert functions. Also added resize function
fixed something in resize()