Replace repeated code with references to SortRoots.

SortRoots function was added to MATRIX2.vb in an earlier commit.