FIFO queue for structs developed in C on Netbeans