example stack array implememtation in C