Finished the sorting algorithms in the table