implement array interface for vector