finished another stack/queue impl in C