quick sort in C language using malloc and free pointer
modified