Implement basic functionality and tests for vector class