Work In Progress

I'm trying to rotate the image, but I ended up implementing in place
transposition. Not quite what I wanted but I'm done hacking for the day.

http://en.wikipedia.org/wiki/In-place_matrix_transposition#Square_matrices