Update of sort.h and sort.c