2. Verify that shearsort permutes the input matrix.
