implemented remaining methods of Vector
add test class for Vector