modifying and changing the name of the selection.h to sorting.h