added row/col notation for the "rotate" function
exercise 9 (r)