Finished sorting Algo