add some basic methods for vector