naive method for matrix multiply