Adding sorting algorithm finished