Add const correctness for DenseMatrix