C implementation of Stack as a Structure