finished sorting algorithms