Odd Even Sort and Memory Allocation with Pointers in C