I have written a code which calculates the transpose of a matrix NxM using double pointers. As long as the matrix is square(NxN) it works without problems, but if it isn\'t, I g