get nth node in a linked list