Implement mathematical vector type.