Additional functions to the vector class