Adding __rmul__ method to matrix