Stack Implementation in C Xcode 5