added scalar multiplication to DenseMat and DenseVec