spiral traverse of a matrix
merge