Replace part of the matrix
with another matrix
