added in-place matrix transposition code.
all credit goes to "http://rosettacode.org/wiki/Matrix_transposition#C" for the following in-place matrix transposition code.