spiral printing of matrices