print matrix in spiral order