adding JQueue and JLinkedList implements it