Sort Array Without Using Function Pointers In C