Printing the elements of matrix in spiral fashion.