Need to either restrict swap to matrices that have the same number of rows and columns or handle different sizes.