fixed vector.h so all functions work