several sort algorithm,implemented in C