Sorting An Array Using Pointers