a simple queue implememtation in c