Using recursion to delete the node at the tail of a list