Sorting Algorithm - Worst Case