added vector operations to vector class