linkedlist hasloop