add some function in vector.h