Method change

Changed for loop for matrix multiplication method