C language-based merge sorting