Row-column permutation of sparse matrices