added code for rotating 2d matrix

code to rotate a NxN array