Various algorithms used in sorting