Renamed class Matrix to DenseMatrix.

Renamed class Matrix to DenseMatrix and fixed a small programming error concerning the const correctness.