Implemented scalar multiplication for Matrices.