Sort Array Without Using Function Pointers