Some basic classes for vector and matrix multiplication