LinkedQueue and each main function