add quickSort and selectionRank