Added solution to matrix rotation problem.

May revisit to do a bit of refactor / cleanup.