Helper class for Matrix manipulations.