3. Verify that shearsort sorts the matrix in a snake-like manner.
