more matrices input
sending rows and cols instead of matrices in OneToAll