moved position of constructor in vector.h