Print a matrix in spiral order.