Various sorting algorithm & test cases.