remove the Nth element from a linked list