get element from singly linked lists