implement stack_t

added stack_shrink_to_fit.
fixed declaration of stack_pop.
added STACK_GROWTH_RATE macro in stack.h.