Queue Implemenation in C Xcode 5