Classes for matrices and vectors.