Add pre-shuffling of the co-occurrence matrix.
Note that matrix is shuffle in-place in docstring.