Code of queue data structure