added nth node from the end of a linked list