Array implmentation of Stack in C