added an offset operator for the vector class