external sorting files with the use of strings in C