Implement Vector class.