factorized out the sorting-algorithms
Merge branch 'master' of https://github.com/Gavekort/RandSorter