a small script which allows two dimensional arrays to be rotatet