Replace repeated code with references to SortRoots.
Replace repeated code with references to SortRoots.
Replace repeated code with references to SortRoots.
Replace repeated code with references to SortRoots.
Merge pull request #29 from waqqasdadabhoy/master

Replace repeated code with references to SortRoots.