Quick sorting wit 3 ways of chooosing the pivot