added matrix multiplication by a scalar