add sorting algorithm to the project