made printMatrix more general, passed test 8
passed test 9 - 14
clockwise and counter-clockwise rotation, passed test 15 -21
passed test 22 - 28