Seth's implementation of vector