Rotating 2d array 90 degrees & 180 degrees