address issue #18

I included a method to rotate a 2-dim matrix and added a test method.