multiplication of the matrix without using the multiplication operator