Added vector element erasing method