Simple stack data structure in C